
package com.letoken.platform.repo.ecommerce.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "订单记录")
public class OrderRes implements Serializable {

    private Integer id;

    @ApiModelProperty("订单No")
    private String orderNo;


    @ApiModelProperty("支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty("收货地址")
    private String shippingAddress;

    @ApiModelProperty("订单创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("订单关闭时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("ecommerceName")
    private String ecommerceName;

    @ApiModelProperty("商品ID")
    private Integer userId;

    @ApiModelProperty("订单状态：0->待付款；1->待发货； 2->待收货；3->已完成 4->已取消")
    private Integer status;

    private String afterSaleOrderNo;


    private List<OrderProductRes> products;
}
